def METHOD_NAME(survey, data):
    return SurveyFormField(
        admin_label=data.get("admin_label"),
        choices="|".join(
            choice.strip() for choice in data.get("choices", "").split(",")
        ),
        default_value=data.get("default_value"),
        field_type=(
            "positivenumber"
            if (ftype := data.get("field_type")) == "positive_number"
            else ftype
        ),
        help_text=data.get("help_text"),
        label=data.get("label"),
        page=survey,
        page_break=data.get("page_break"),
        required=data.get("required"),
        skip_logic=[
            create_answer_option(item)
            for item in json.loads(data.get("skip_logic", "[]"))
        ],
        sort_order=data.get("sort_order"),
    )