Remove code duplication for spawn params
Remove code duplication for spawn params

Thanks #codeclimate

code-mancers/invoker,chiliburger/invoker,nisanth074/invoker,code-mancers/invoker,nisanth074/invoker,flanker/invoker,nisanth074/invoker,chiliburger/invoker,code-mancers/invoker,diskshima/invoker,flanker/invoker,chiliburger/invoker,diskshima/invoker,diskshima/invoker,flanker/invoker