code: function initializeLayout(workflowState) {
              var stateForLayout = workflowState.reason ? {} : recordedState;
  
              stateForLayout["environmentConfig"] = environmentConfig;
  
              try {
                  layout = new LayoutForRoute({
                      request: serverRequest,
                      model: new Backbone.Model(stateForLayout)
                  });
              } catch (reason) {
                  workflowState.reason = reason;
  
                  layout = new LayoutForRoute({
                      request: serverRequest,
                      model: new Backbone.Model({
                          environmentConfig: environmentConfig
                      })
                  });
              }
  
              layout.setEnvironmentConfig(environmentConfig);
  
              return workflowState;
          }
docs: /*
  Deprecated: Passing request as options is an intermediate
  fix while we plan a better way to get this where it's needed.