Now I understand what you require in the task. You want refactoring CSS file for maximal optimization.BEM methodology was created for this.