|As Ahsan said, there's no one set way of doing so. Probably is going to require rewrite on the front end, and there's some chance code reuse can be done with careful planning.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham