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