Extract convert_attachments

But I don't test this commit, yet.
I don't have enough environment for test.
Use meaningful names