Funny enough, in Spain the bourbons went in the other direction in recent history (1975): republic -> civil war and dictatorship and then the bourbon monarch that was the dictator successor had a role in transitioning to parliamentary monarchy.