Refactoring
create_survey and its helpers