Possibly you could add a boolean parameter, if true use new code if false use old code for that line?