MDL-59890 coursecat: Add helper to fetch nested view of coursecat