In nearly every case the city is there only because the railroad was there first. Obviously reasonable and pertinent safety measures should be taken ("Safety First", etc) but I think it's pretty unreasonable to ask the railroads to move their 100+-year-old routes because people built a city around it.