Return a std::unique_ptr from the IRReader.h functions. NFC.