Rewrite parts of _jit_..._fn for further clarity. (Pure refactor.)
Rewrite parts of _jit_..._fn for further clarity. (Pure refactor.)

PiperOrigin-RevId: 268091490

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor