I would not be surprised to find out Putin had a little something to do with encouraging this.
I doubt it, but he's probably watching the TV cheering the news, after Turkey downed one of his jets.
Erdogan is being removed for the same reasons as Morsi was in Egypt: his attempt at "fundamental transformation" of Turkey.