Revert "MDL-33063 course: Reuse get_all_sections()"