When it comes to maintaining the UK’s intricate railway network, a lot goes on behind the scenes that passengers rarely see.