Remove unused variables from fetch_transfer function.