Why `course_id` in this condition but `course_key` in the other?