This is a follow-up on #31384 and a neutral change for normal builds of sagelib. Needed for #29865 (Modularization of sagelib: Break out separate packages sagemath-objects, sagemath-categories)
CC: @kiwifb @kliem @dimpase @antonio-rojas @orlitzky
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: 676111f
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/32373