This is to get around borrow checker for TiKV side of changes. Other APIs also pass in structs as reference.