For what it's worth, I left it in park and swapped mine out. I did align the triangle on the gears to match what it was on the removed set, but I don't think it matters; I believe the relearn process should figure out where it needs to be. Do note the operative word being "believe" and not "know".
Here's a link to my shift motor teardown
Here's a link to my shift motor teardown