Pull out of if and else blocks.