When any highway, or portion thereof, in which are located tracks of any railroad is lawfully discontinued, the company owning or operating such railroad shall have the right, with the approval of the Commissioner of Transportation, to take land for its railroad within the limits of such highway or part thereof discontinued.