Renaming patterns to avoid conflicts