CC-5197: Refactor Scheduler.php into SchedulerService.php