docs: def remove(mode_id: str) -> bool:
      """
      Removes the specified mode identifier from the active modes and returns
      whether or not a remove operation was carried out. If the mode identifier
      is not in the currently active modes, it does need to be removed.
      """
  
      had_mode = has(mode_id)
  
      if had_mode:
          _current_modes.remove(mode_id)
  
      return had_mode