Split get_courses_for_wiki impl

LMS-2914
op nevermind it was added, but later on in the docstring.