WebUiFactory no longer needs environment.