You probably can't run it yet, but it looks quite promising ...
GitHub Copilot code refactoring to the rescue.
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results