Actually, this whole method can go away, and we can change the callers to just use `location.course_key` unless they really need the usage key of the course root. In that case, we can use `get_course(location.course_key)`.