Cleanup GetMode in RecordWriteStub