Extract `EnvironmentImpl` from `setUp()` to allow access from external.