Refactor bunsan::worker