Improve code style in worker backend.