[Validator] Replaced inexistent interface.

ClassMetadataFactoryInterface was removed in 2.3 and replaced with MetadataFactoryInterface.