lib
Revert "MDL-39723 prevent update_courses() bad habits."

This reverts commit a182f88f7f34e31c279459f50a29ffd8d8575708.
lib