This method was deprecated, but it's still being used by many other classes across the ORM codebase.
It's being a problem because this method used to be quite efficient, while nowadays it requires a ServiceRegistry lookup.