https://github.com/steakhal approved this pull request. I don't really feel that this is relevant enough to be merged, but let's do it anyways. If you find more things to refactor, or have plans for doing so, let me know. https://github.com/llvm/llvm-project/pull/114427