Removing surplus variable