Now that Karthik has responded on the office Q&A and wanted to start a little dialog about this. For the original poster, if you want both controllers to have the capability to do the same function, that is possible without having to unplug the partner joystick. We did this when we were figuring out which functions that main driver would control and which functions the secondary driver would control.
All you have to do is put an “or” statement so the function would work with either joystick. As Karthik points out, trying to unplug a controller in the middle of a match seems really risky and unnecessary.