I think as long as u have people voting on caste and religious lines, you will have these kind of politics and politicians. It is the same across the country but UP is an extreme case of that.
Mulayam can even dream of coming back to power (in fact, he is a serious contender) only because of the loyal yadav and muslim vote banks.
The fault lies with the people. This was the case with Bihar but nitish kumar somehow worked the arithmetic and also was able to raise some hope and break this vicious cycle. I dont know who can do that in UP.
The other way of breaking this is to raise the emotions like the mandir issue. I think the BJP is trying to do a similar act this time with the CD and ads.