Refactored `IdentityMetadataProcessor`