0.8dev: Correctly set `environment_factory` and `request_factory` on multiproduct upgrade. Refs #795.