Refactoring of SchedulingAlgorithm.