Add ClassMetadataFactory