As far as I am aware, the typical historical formation in field battles was 1st rank pavise and spear, 2nd rank polearm, and then 3rd to 8th ranks crossbows. I think the formation orginally came about from the crusades, as a way of keeping swarms of horse archers at bay.