The way Saint-Étienne modernized it's tram in the 1970s-2000s is a great lesson for cities like Toronto, Boston, Philly, San Francisco etc.
It's all there: circulation planning, new dedicated RoW, priority route with systematic descoping of lateral streets (RI-RO) etc.