MDL-40467 Libraries: deprecated get_role_context_caps()