Remove unused references and using directives.