Refactor attachments to be driven by Views