Small refactoring in scheduler view.