When two or more religious societies or congregations, by gift or purchase have acquired land upon which to erect a house of public worship, and other buildings for church or school purposes, and for a cemetery, in common, and either of such societies or congregations desires to abandon the joint use of such house of worship, or other erections, it may commence an action for the partition of the use of such common property, except the cemetery, which may continue to be used in common.
R.C. §5307.23