Refactor: Clean up the old snippets for pattern generation.