Can this functionality be handled by the provider collection? I.e. $provide_collection->get_provider().