Rename ExtractPatterns to literalReplacement

And update tests