Duplication Validation and Refactoring