it might be possible to replace such a methods with the new textual modes functionality.
Check: https://github.com/Textualize/textual/issues/3127