Update a factory.