Original: The historic shire or sheriffdom of Ayr was divided into three districts or bailieries which later made up the county of Ayrshire.
Simplified: There used to be three districts called "bailieries" which were later put together to make up the shire of Ayrshire.