Equivalence of two approaches for quantum-classical hybrid systems