Update MetadataFactory.php