Small Refactoring of `IdentityMetadataProcessor`