Refactoring out example code