Fix and clean the Spring config around the scheduler.