The ORM metadata factory handles this - maybe avoid wrapping the metadata and fetch it from there via a name reference?