This refactoring consolidates the steps in the PR check workflow, reducing redundancy and improving efficiency.