refactor: move worker setup into worker node constructor