The county commissioners may enter into contracts with a railroad company to relocate, change or elevate the railroads within the county in such manner as, in the judgment of the board, may be best adapted to secure the safety of lives and property and promote the interest of the county.
16 Pa.C.S. § 15356