May as well shift this into `compat.py`