[REF] Clean up code around is_email_receipt