(split out from #31296)
This is to avoid deprecation warnings in Python 3.10 when the sage.features is imported.
CC: @tscrim
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: 8c763f4
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32565