Consolidate course_id triple parsing