Cleanup repetition in Message#find_attachment_filename