Remove rabbit logic from the email worker.