Use std::unique_ptr for decoders as well