Update LegacyDeserializerFactory.php