Clean up logic in transaction_update_email_text_worker