If when you crack open Copilot it’s determined that it’s not actually learning and boils down to storing and regurgitating snippets of code no matter how few or many layers of indirection it’s still infringement.
What your AI actually does is underneath all the indirection is what’s important.