Moved GetPickingPriority to more appropriate spot.