Remove unused and invalid use statements.