The expense of repairing, replacing, and maintaining all "railroad and highway crossings," as defined by § 31-27-21, and all protection and safety devices shall be determined by the Department of Transportation on the basis of the proportion of benefit, if any, derived by railroad companies, and the benefit, if any, to the public authority at interest.
SDCL 31-27-19.1