Remove undefined variables, probably leftovers from a refactoring.