Put the 2007 specific code in its own procedure in a SEPARATE module, and call that procedure.