Split get_courses_for_wiki impl

LMS-2914
@nasthagiri -- @dmitchell added this TODO and I'm not certain how to address it. Do you have any idea? Would be nice to be able to merge this and not have to wait for Don to return from vacation.