Remove unnecessary borrows