`editor.mutateSelectedText` will invoke this function once per selection, so the event should only be aborted when none of the selections are handled, perhaps keep a boolean around called `bracketsRemoved` and set it to true if any selections were modified.

Then return this boolean from this `removeBrackets` method.

Then have something like this above so you don't have to pass around the event:

```coffee
atom.workspaceView.command "bracket-matcher:remove-brackets", (event) =>
  event.abortKeyBinding() unless @removeBrackets()