replace insert and push_back with emplace and emplace_back APIs, document builder no longer requires moves.