refactored reconstruction of surveys in rest resource