First step of refactoring email fetching code to abstract out what to do with the attachments.
More refactoring.
Finished refactoring.  The logic for processing an email attachment is now in the processAttachment() method of EmailAttachmentProcessor.