🔥 3-day streak
GitHub Copilot128 / 190
Question 128 of 190
A developer maintains a payment module where the same validation logic (checking currency codes, amount ranges, and account status) is copied across four different handler functions. They want to use GitHub Copilot to reduce this duplication and improve maintainability without changing external behavior. Which approach best leverages Copilot for this refactoring task?
Reviewed for accuracy · Report an issueNext question