Removes unwanted use statements.