During the pleading stage, this can be accomplished by a tool such as Rule 12(f) of the Federal Rules of Civil Procedure or a state equivalent. Under Rule 12(f), a part of a pleading can be removed if it is redundant, immaterial, impertinent, or scandalous.