All of this green is basically just copy-paste from what was formerly `Raw` in `mne/fiff/raw.py`, renamed as a class to be `_BaseRaw`.