Remove unused modules and variables.