Refactoring validation