The attack on a central avenue in Istanbul is a stark reminder of the bombings in Turkish cities between 2015 and 2017 that crushed the public's sense of security and heralded a new phase in Turkey's decades-long fight against outlawed Kurdish groups.