Refactor section new/edit form.