This is a pure refactoring. It removes some repeated calls of `ast.parse()` and reuse the result of a single `ast.parse()` call per parameter. <!-- gh-linked-prs --> ### Linked PRs * gh-135257 <!-- /gh-linked-prs -->