Split get_courses_for_wiki impl

LMS-2914
The naming `course_locations` clashes with `self.course_locations`.