Refactored to generalize editing for safety plan.
Refactored textWasEdited in safety plan screen.