minor code dedup in CRAMFileReader