Move AttachmentSerializer up so that it can be referenced earlier