Wordpress code is amazingly awful, but Wordpress is also a general-purpose blogging/publishing platform meant to be installed anywhere, be extended by plugins and themes, and serve the needs of many, many people. If you write your own blogging platform that does just what you need without worrying about drop-in installation, plugins, themes, or anyone else, and you don't end up with a "pretty nice reduction in code", you're in sad, sad shape.