Whenever the Commissioner of Highways or representative of the appropriate public road authority determines that it is in the best interest of the public to assist a railroad in its grade crossing maintenance and repair activities, he is authorized to enter into an agreement with the railroad company for the repair or maintenance of any crossing of a railroad and a public highway or for the sale of materials to the railroad company for the repair and maintenance of any such crossing. Any such agreement shall provide for the railroad company to bear the cost of the repair or maintenance or material furnished and such other conditions as the Commissioner of Highways or representative of the appropriate public road authority deems necessary or advisable to protect the interest of the public.
Va. Code § 56-405.1