Extract method in schedule.