Any municipality in the state may, at its discretion, and in cooperation with the presiding judge of the circuit, provide suitable and adequate quarters for a magistrate court assigned principally to serve the municipality, including the facilities necessary to make the space provided functional for its intended use.
SDCL 16-12A-30.1