In my experience it, or something close to it, is the only way. AI needs good code to be beaten out of it.