Refactor examples.