Split get_courses_for_wiki impl

LMS-2914
@nasthagiri I don't see `get_course` utilizing `self.branch_setting_func` at all - perhaps I'm missing something? I'd like to sit down with you for a few minutes to understand how I should address this comment.