consolidate more worker init code