God "caused Adam to fall into a deep sleep" presumably so he wouldn't feel the pain of having a rib removed.

Exactly the way the writer would hope it was done if it was done to him.

Couldn't God just have removed the rib without the surgery routine?