)and one in Lowell; and the defunct Middlesex County Hospital in the city of Waltham.The legislation abolishing the Middlesex County executive retained the Sheriff and Registers of Deeds as independently elected officials, and transferred the Sheriff's Office under the state Department of Public Safety and the two Registry of Deeds offices to the Massachusetts Secretary of State's Office.