define(
	(require, factory) => {
    const { AuthorizedRoute } = require('pages/Route');
    function routes(appModel, router) {
      const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => {
        appModel.activePage(this.title);
        require(['./conceptset-manager', 'components/cohort-definition-browser', 'conceptset-list-modal'], function () {
          appModel.loadConceptSet(conceptSetId, 'conceptset-manager', 'repository', mode);
          appModel.resolveConceptSetExpression();
        });
      });

      return {
        '/conceptset/:conceptSetId': detailsRoute,
        '/conceptset/:conceptSetId/:mode': detailsRoute,
        '/conceptsets': new AuthorizedRoute(() => {
          appModel.activePage(this.title);
          require(['./conceptset-browser'], function () {
            router.setCurrentView('conceptset-browser');
          });
        }),
        '/concept/:conceptId:': new AuthorizedRoute((conceptId) => {
          appModel.activePage(this.title);
          require(['./concept-manager'], function () {
            appModel.currentConceptId(conceptId);
            router.setCurrentView('concept-manager', { conceptId });
          });
        }),
      };
    }

    return routes;
  }
);
define(
	(require, factory) => {
    const { AuthorizedRoute } = require('pages/Route');
    function routes(appModel, router) {
      const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => {
        appModel.activePage(this.title);
        require(['./conceptset-manager', 'components/cohort-definition-browser', 'conceptset-list-modal'], function () {
          appModel.loadConceptSet(conceptSetId, 'conceptset-manager', 'repository', mode);
        });
      });

      return {
        '/conceptset/:conceptSetId': detailsRoute,
        '/conceptset/:conceptSetId/:mode': detailsRoute,
        '/conceptsets': new AuthorizedRoute(() => {
          appModel.activePage(this.title);
          require(['./conceptset-browser'], function () {
            router.setCurrentView('conceptset-browser');
          });
        }),
        '/concept/:conceptId:': new AuthorizedRoute((conceptId) => {
          appModel.activePage(this.title);
          require(['./concept-manager'], function () {
            appModel.currentConceptId(conceptId);
            router.setCurrentView('concept-manager', { conceptId });
          });
        }),
      };
    }

    return routes;
  }
);
Remove redundant call to resolveConceptSetExpression