Move destroy-form functionality in its own function, instead of binding cancel

Not only is this cleaner, binding to cancel is insufficient too: when form is
destroyed e.g. upon encountering an edit conflict, cancel btn isn't triggered.
In fact, clicking cancel button executes destroyEditForm ;)

Change-Id: I024fe34c7a98e5fe165971b7a5542028ccf54ec3