`get_course_by_id` is a waste. You already know the course exists otherwise get_courses wouldn't have returned it. Fetching a course is expensive.