Optimization level is used for things that can be done in ast_opt. I'll try to move them there. <!-- gh-linked-prs --> ### Linked PRs * gh-123959 * gh-124143 <!-- /gh-linked-prs -->