This is the first step to be able to reduce the code duplication and complexity so adding features to the default traceback is easier. <!-- gh-linked-prs --> ### Linked PRs * gh-110702 * gh-111905 * gh-113712 <!-- /gh-linked-prs -->