tiny refactor for swift mailer wrapper