Factor IRSpy-independent _really_write_record() out of