In other words, there has been a threat hanging in the air that there may be legislation or regulations and the railways have pulled up their socks a bit.
Autrement dit, la menace d'une loi ou d'un règlement a incité les compagnies de chemin de fer à se secouer un peu.