Remove global variables from the configure callback function.