Buy yourself a "dead blow" hammer, then,
after i took the nut off the end, and loosened the bolts on the lower forks, i put the bolt back on a few threads, tapped it till it was moving, then i used a long punch to tap till i could twist it out.
The purpose of the female hex head is to allow you to tighten the axle nut
before you tighten the pinch bolts. Then, you compress the front suspension several times and rotate the wheel and stop it with the front brake. This helps to make the bottom of the forks to be spaced the same as they are at the triple clamp reducing drag on the suspension. When this is done, tighten the pinch bolts.
An alternate method to installing and aligning the front wheel is to install the axle, tighten the pinch bolt on the side away from the nut. Tighten the nut and then loosen the pinch bolts and compress the forks, yada, yada.
The dead blow hammer comes in handy for many things and it won't bounce back and hit you in the forehead!
My explanation may be as clear as mud, I know how and why to do it but I can't 'splain it well.;)