There's quite a lot of circular dependencies in this code. All the functionality is in the companion, so I think you could make the code a lot clearer if it was all in one place. This class seems unneeded. You could move the contents of this `def` inside `ProjectsCleanJob.apply`, and override `schedule` in the `DoCleanJob` class.