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?