This has more to do with the fact that copilot by nature is additive and not editing your code. There was a recent report about how code quality is dropping in codebases because of the repetitive code being introduced by copilot.
The next evolution as you are saying would be to detect if its a repetitive code and modularise it or refactor it.