All payments which are based on retail revenue from each incorporated city or village shall be divided and distributed by the county treasurer to that city or village, to the school districts located in that city or village, to any learning community located in that city or village for payments distributed prior to September 1, 2017, and to the county in which may be located any such incorporated city or village in the proportion that their respective property tax levies in the preceding year bore to the total of such levies, except that the only learning community levies to be included are the common levies for which the proceeds are distributed to member school districts pursuant to section 79-1073.