(and except sage.geometry.riemannian_manifolds, which is removed in #32228)
Similar to what is done in #32411.
This is part of Meta-ticket #29705 (modularization) - to remove unnecessary dependencies on the distribution sagemath-symbolics (#31695)
CC: @kliem @fchapoton
Component: refactoring
Author: Jonathan Kliem
Branch/Commit: c40df1a
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/32416