Part of Meta-ticket #34201.
CC: @nbruin
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: cc5d6da
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/34190