If you take the factory exhaust off the sensors just unplug,the sensors stay in the factory pipes, just be careful not to damage them. You dont need the sensors in aftermarket pipes, you are tuneing it also arn't you.If you take the DPF and Cat off and just put the sensors in the aftermarket exhaust you do nothing but throw codes, you did not mention about tuneing