converting metrics view to markup template
pulling out duplicated attributes