Remove extraneous variables.