I really love how this code has been refactored with the `runOperationShowingMessage` and `confirmThenRunOperation` helper functions.
Is it possible to also include the `event.preventDefault()` calls in the helpers so they are not repeated and forgotten?