Refactoring support for email validation