Look for other places where location.as_old_location_course_id exists to see if there are other lurking bugs....

From our conversation, I assume the plan is to eventually delete lines 40 and 41 once we are fully over in split.