Refactored for reuse in non-keybinding functions