<div id="comment:0"></div> (cherry-picked from #32432) CC: @tscrim Component: **refactoring** Author: **Matthias Koeppe** Branch/Commit: **[`86aec73`](https://github.com/sagemath/sagetrac-mirror/commit/86aec7339484f10ee040fb4650209dd65a79f97d)** Reviewer: **Travis Scrimshaw** _Issue created by migration from https://trac.sagemath.org/ticket/32769_