RecordReader: Remove duplicate code