MDL-41690 course: remove use of deprecated functions