Simplify getCourseId