Refactor generation examples