Use base shared class and not RegistryInterface used only in ORM