Any board of county commissioners may, by ordinance, classify all county roads for which public expenditures were made in the acquisition, improvement or maintenance of the same, according to the type and amount of expenditures made and the nature of the county's property interest in the road; and may require persons benefiting from the vacation of county roads within some or all of the said classes to compensate the county as a condition precedent to the vacation thereof.