Refactoring quartz jobs to get train information