Clean up CourseAssigner::assignCourses.