This ticket is for the parent classes.
The is_... methods for element classes will be taken care of in #24525.
Depends on #32566
Depends on #32610
Depends on #32606
CC: @kliem @tscrim
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: 124f213
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32612