gh-37223: Remove invariants commands in global namespace
This PR removes the depreciated invariants from #28064 (2019). It's been
long enough and we should declutter the tab-autocomplete from these very
specific functions.
As an aside, I'm not sure why we have:
```py
from . import monsky_washnitzer
```
Instead of importing objects from this module, but I have not worked
with this myself so am loathed to modify this without further input from
the community.
URL: https://github.com/sagemath/sage/pull/37223
Reported by: Giacomo Pope
Reviewer(s): Frédéric Chapoton