In a parliamentary system, one effective procedure is to require a "constructive vote of non-confidence"; that is, when (before) a government is removed, there must be majority support for an alternate government (or prime minister) to take over.
In a presidential system, in order to increase the president's support in the legislature, scholars have argued for having the entire legislature elected at the same time as the president, so as to maximize the president's "coat-tails effect."