My bro in law had a electric motor shop that did ac and dc work. After the vehicles started getting computers, he would take a battery and put light jumper wire on the vehicle before removing the battery. This solved the problem of having to reset the computer after the installation of the new battery. And we ALWAYS took the ground wire off first, regardless of the vehicle.