Could you mark fields which should be transform to tag field in uniform style? You can use an attribute to do it. It will allow us to transform them with one jquery function and carry it out in separate file.