Factorize

Optimization done.
If a property exist for different tags, a new tag with this property is
created and the property is deleted in other tags.