Remove variables that are no longer used.