Remove unused methods from the PatternExtraction class.