Is there a secret trick for installing axle shafts?

Out of curiosity....what can be done in advance of, or during the axle removal to prevent the splines from mis- aligning?

Do not turn anything when pulling axles out and you should be ok. Best way to do that is remove all axle retaining bolts and leave axles in place until they are both ready to pull out.