Conservation and integrability in lower-dimensional gravity