<div id="comment:0"></div> (cherry-picked from #32432) CC: @kliem Component: **refactoring** Author: **Matthias Koeppe** Branch/Commit: **[`065c627`](https://github.com/sagemath/sagetrac-mirror/commit/065c627922622e922fe89e2051d7b49e92b3c0f1)** Reviewer: **Jonathan Kliem** _Issue created by migration from https://trac.sagemath.org/ticket/33402_