refactor devise mailer