Deceptive context. use `self.course_location.course_key`, add `category=category`, and get rid of Line 227