Refactor leader-worker to use worker-options