Move some of import()'s code into getAllForSurvey()