Refactoring delete_form generation