The route of the railroad of a corporation established by special charter, and of its branches and extensions, shall be fixed according to sections twenty and twenty-one except so far as they may have been fixed by special statute; and such railroad, branches and extensions shall be located and constructed according to the provisions of this chapter regulating the location and construction of railroads by corporations incorporated under general laws, except that section seventeen shall not apply, if authority so to locate and construct has been granted by special act of the general court.
Mass. Gen. Laws ch. 160, § 12