Swap the definitions of a global var and a constant