Replace as_course_locator with course_key