Optimize markup with group styles