Formulation of moment equations for rarefied gases within two frameworks of non-equilibrium thermodynamics: RET and GENERIC. (1st May 2020)