Ontify
Catalysis of the reactions: hydroxylamine + NH3 = hydrazine + H2O, and hydrazine + acceptor = N2 + reduced acceptor.