Refactor duplicate model add/edit forms.