Factor out getDefaultLessVars.