MDL-40467 Libraries: deprecated get_role_context_caps()
MDL-40463 libraries: Deprecate get_courseid_from_context()