Split get_courses_for_wiki impl

LMS-2914
`index_entry` not a param here