Refactoring mailer