(1+1)-dimensional integrable systems as symmetry constraints of (2+1)-dimensional systems