We should add the call to set the factory here as well so the examples can be equivalent.