Pushbutton Parking Brake Cable Removal

I would, but I'm changing out the shifter and I want to reuse the cable but keep the old shifter as a spare. Turns out it just bends apart with some gentle use of vice grips. I was just making sure there wasn't a better way before I risked breaking the metal.