I was recently talking to a person at the Samaritans who works on this project. They consider physical barriers, things that look like barriers, signs and where to put them (usually worded to encourage people to contact The Samaritans), closing off remote access/exit points, etc.
I don't work on the railway, but for many years was with the local council. We had to deal with the deaths when there was no one else to do so. Therefore tramps, homeless, people living alone (usually elderly), suicides, aftermaths of road accidents. In those days we had a list of 'dirty job contractors' who would do the clear ups. These contractors would also do the clean ups of hoarder's houses full of all sorts of rubbish, aftermaths of flooding and serious drainage problems, a memorable one was a butcher's freezer full of pate where the electricity bill hadn't been paid for six months!
The only fatality I've ever witnessed was at a motor cycle grand prix where a rider fell and was struck by another rider. He was clearly dead, they dragged him to the side of the track and took him away in an ambulance. Meanwhile the race continued; it was a long time ago, these days the race would be stopped. Witnessed by about 200-300 people near that bit of track. I can still see it 40 years later.
Respect to the railway staff, BTP and others who have to deal with these incidents.