This really mirrors my experience trying to get LLMs to clean up kernel driver code, they seem utterly incapable of simplifying things.