It shall be provided in every such grant that upon the annexation of any territory to the City the portion of any such utility that may be located within such annexed territory and upon the streets, alleys, or public grounds thereof, shall thereafter be subject to all the terms of the grant as though it were an extension made thereunder.