Code deformation and lattice surgery are gauge fixing