Split get_courses_for_wiki impl

LMS-2914
@nasthagiri this is the weirdest thing that neither Don nor I could figure out. Please pull down the branch and add in the succinct form... tests will fail.