Move processing which was common in comment-tag-gen-plugin and for customizing.