We can remove almost half of this file without losing any expressiveness and marginally improve performance at the same time. <!-- gh-linked-prs --> ### Linked PRs * gh-102540 * gh-106433 <!-- /gh-linked-prs -->