The beauty of Avogadro;s Principle, ni is proportional to Vi , is that you can use volumes to measure gases at a set temperature and pressure as your extensive variable. You write the equation for the reaction and the stoichiometry can be used as volume ratios (in any volume units) rather than the typical mole ratios.
There are 2 volumes NH3 produced / 1 volume of N2 reacted. (This is like a conversion factor)