Remove setting of parents in the factory.