The best way to improve a program is to rewrite it.
The architecture of a system determines its behavior more than the content of its knowledge.