Removing unwanted code