Split get_courses_for_wiki impl

LMS-2914
this docstring is identical to `_update_search_targets`