Removes PHI variables