Refactor some logic in `handle_tab_drop` (#32213)

Tiny little clean up PR after #32184 

Release Notes:

- N/A
e37c78bde7Joseph T. Lyons committed on 6/6/2025, 4:49:36 AM· committed by GitHubparent920ca68
1 file changedLine totals unavailable