Refactoring code samples.