Constitutive recasting of macromolecular-based thermoviscoplasticity as yield function-based formulation