Kentucky lawmakers gave final approval Thursday to a bill stripping the state’s Democratic governor of any role in picking someone to occupy a U.S. Senate seat if a vacancy occurred in the home state of 82-year-old Senate Republican leader Mitch McConnell.

The legislation calls for a special election to fill any Senate vacancy from the Bluegrass State. The special election winner would hold the seat for the remainder of the unexpired term.