Top Democrats leaving legislature