Municipalities and organizations like the Federation of Canadian Municipalities certainly have a role to play in the safety of grade crossings, not only in terms of maintenance, but also the development of subdivisions and community development.
For example, if we want to build a grade crossing in a very busy area, we have to ask if it wouldn't be worthwhile to instead build an underpass or an overpass to avoid the risk of collision. However, this type of construction is still relatively costly.