If you switch directions with hand crafted code you have a mess too and a large amount of tedious refactoring work to do.

Which should be perfect work for Ai.