Refactor logic for Course, Enrollment, and Semester.