A unifying framework for relaxations of the causal assumptions in Bell's theorem