I drill a 1/8in. hole in two places on the hinge and take the door off & do the work.
Now you can put the doors back on & put 1/8 in. dill bits back in the holes and it is back where it was.