Removes unwanted code.