Refactor attachment rendering

Removes hardcoded snippet knowledge from
attachment processor.