I get it’s annoying and I personally hate it but firing someone for it is ridiculous. Are you expecting everyone to rewrite everything from an AI before they share it because that doesn’t sound a good use of company time either.
If they wanted an AI answer they could have asked it themself.
Why NOT fire them?
Do they ensure that it didn’t accidentally overwrite something it shouldn’t have?
Or do they just throw up a PR and assume their little refactoring bash command works fine, then expect their coworkers to debug it for them?