Move saveEdited() to private.