refactor: cleanup direct access to worker id