Another thought that has been rolling around my head is that this election is a long time coming.
Folks have been leaving both parties for a long time. I think it is mostly the moderates who have been leaving. As more leave, the parties become more extreme which motivates more moderates to leave and it snowballs.
I see it more in the Republican party, and I think that is reflected in their candidates. Bernie is pretty extreme too though.