; or (ii) by removing non-Federal land from the exchange. (g) Indian tribes The Secretary shall consult with any federally recognized Indian Tribe in the vicinity of the Federal land and non-Federal land to be exchanged under subsection (b)(1) before the completion of the land exchange. (h) Appurtenant water rights Any conveyance of a parcel of Federal land or non-Federal land under subsection (b)(1) shall include the conveyance of water rights appurtenant to the parcel conveyed. (i) Grazing permits (1) In general If the Federal land or non-Federal land exchanged under subsection (b)(1) is subject to a lease, permit, or contract for the grazing of domestic livestock in effect on the date of acquisition, the Secretary and the State shall allow the grazing to continue for the remainder of the term of the lease, permit, or contract, subject to the related terms and conditions of user agreements, including permitted stocking rates, grazing fee levels, access rights, and ownership and use of range improvements. (2) Renewal To the extent allowed by Federal or State law, on expiration of any grazing lease, permit, or contract described in paragraph (1), the holder of the lease, permit, or contract shall be entitled to a preference right to renew the lease, permit, or contract. (3) Cancellation (A) In general Nothing in this section prevents the Secretary or the State from canceling or modifying a grazing permit, lease, or contract if the Federal land or non-Federal land subject to the permit, lease, or contract is sold, conveyed, transferred, or leased for non-grazing purposes by the Secretary or the State. (B) Limitation Except to the extent reasonably necessary to accommodate surface operations in support of mineral development, the Secretary or the State shall not cancel or modify a grazing permit, lease, or contract because the land subject to the permit, lease, or contract has been leased for mineral development. (4) Base properties If non-Federal land conveyed by the State under subsection (b)(1) is used by a