Preview Code Refactoring