Split get_courses_for_wiki impl

LMS-2914
Wow, I'm missing it too.

btw: is the comment about run == name still useful?