`WrapFactory.rewire()` could be replaced with a `rewire` parameter here.