Action handler with option `:once` alternative

Hi all,

I am trying to implement a conditional remove of event handler inside a stimulus action, similar to known pattern described here. I am aware of possible solution with action option :once, hovewer I want to be able to keep event handler created by stimulus with the action code, depending on a test performed inside the action handler. Pseudo code of the action:

actionHandler(event) {
  if (event.target.value == "required") {
    // do something and
    event.target.removeEventListener(event.type, actionHandler);
  } else {
  // do something else, but don't  remove event listener
  }
}

My code is not removing the event listener. To be honest I do not see it on the Event Listeners tab of dev console for the element with the action.
Do you think I am on a dead end with this? Any ideas for other implementations?