Refactor: extract method as fn, spawn_worker -> NewWorker
Refactor: delete private method restart_workers