Refactor edit lists into common template.