Symmetry in Cartan language for geometric theories of gravity