Follow-up from #29706.
It takes care of all remaining extensions.
Depends on #29706
CC: @kliem
Component: refactoring
Author: Matthias Koeppe
Branch: 802356a
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/29791