Split get_courses_for_wiki impl

LMS-2914
@dmitchell I'll move the comment to be above the line which it's talking about.

what do you mean by "I'm missing it too"