Yes, with the merge to opaque keys, you can just assume that `location` is a `CourseKey`.