Eliminate some deep std::vector copies. NFC.