cleans up course-enrolment.api.php. Refs #413