Simplifies legends

+ Simplifies legends.
+ Reduces the number of templates used.