Update object_factory.h