Section 3. The deed of conveyance shall contain a clause that the property conveyed shall be used for county government functions by Westmoreland County, and, if at any time Westmoreland County or its successor in function sells or transfers the property or permits the property to be used for any purpose other than those specified in this section, the title to the property shall immediately revert to and revest in the Commonwealth of Pennsylvania.