(a)
(1)
(A) Any town or city that has a police department but does not have a district court may contribute to the operational expenses of the nearest district court in the county where the town or city is located pursuant to a written agreement.
(B) A written agreement is mandatory and is to be entered into between the governing body of the town or city and the governing bodies of the political subdivisions that contribute to the operational expenses of the district court.
(2)
(A) The contribution to the operational expenses of a district court described in subdivision (a)(1) of this section shall be a prorated amount based on the number of cases filed in the district court from each of the towns and cities and the county during the preceding calendar year.
(B) The prorated amount of operational expenses shall apply to all fines, fees, and costs not obligated under law that are collected pursuant to § 16-13-701 et seq. in all:
(i) Nontraffic cases that are misdemeanors or violations of a town or city ordinance;
(ii) Cases that are misdemeanors or violations under state law; and
(iii) Traffic offenses that are misdemeanors or violations under state law or town or city ordinance committed within the corporate limits of a town or city that is a party to an agreement described in subdivision (a)(1) of this section.
(b) Apportionment of the costs of a district court shall be by order of the district court upon certification of the cases filed by the clerk of the district court.
(c) On and after the effective date of the agreement described in subdivision (a)(1) of this section, all fines, fees, penalties, and costs received by a town or city that is a party to the agreement shall be collected and distributed in the manner provided by laws affecting district courts.