Small refactor to email scraper