There were eight counties corporate: the "County of the City" of each of Cork, Dublin, Limerick, Kilkenny, and Waterford, and the "County of the Town" of each of Carrickfergus, Drogheda and Galway. These were excluded from the enclosing "county-at-large" and exercised at a single level the functions which elsewhere were split between county and barony level. Thus, they had "baronial presentment sessions" although they were not strictly speaking baronies. Each such city or town also had a municipal corporation which had parallel authority with the grand jury; however, each county corporate except Carrickfergus included rural "liberties" outside the municipal boundary. The Municipal Corporations (Ireland) Act 1840 abolished the corporations of Carrickfergus and Galway, while the Counties and Boroughs (Ireland) Act 1840, passed simultaneously, transferred the liberties of the other six counties corporate to the adjoining county-at-large. The transferred area was sometimes assigned to one or more existing county baronies, but sometimes made a barony in its own right. The reduced-size counties corporate continued till the Local Government (Ireland) Act 1898, at which point each of those of Kilkenny and the three towns was merged with a neighbouring county to form a new administrative county, while the other four counties of cities each became a county borough. Both before and after 1898, where a statute presupposed that a county was divided into baronies, judges sometimes construed it by assuming that each county corporate constituted a single barony.