Refactored SED.util.getFormData()