extract edit logic into an edit class for import