in reply to Rewriting a large code base

Lots of good advice here. I think I would approach your problem something like this:

/J