I would like to make the point that the drafters actually do pay a great deal of attention, and, for somebody who looks at it from a policy side, an unbelievably great deal of attention, I can assure you. The convention is that the first time it is used in a particular section it would be
"le juge militaire"
and in subsequent paragraphs it would be “Il”. That's why you see both. The convention is consistent usage, so the first time it's used in that section it would be the full phrase.