I am going to be frank on this question: I think it is very difficult.
We know that our communities, in many places, were built around the railways. It is hard to imagine how the railways could be made to bypass them.
Even in the extraordinary case of Lac-Mégantic, if you manage to establish a line that bypasses the city, that will be done in order to connect to plants and businesses. Since the rail line has to be built, perhaps it will diverted slightly.
However, I do not think it is a realistic idea to move other railway lines out of the communities. They are part of our history.