Refactors stylesheet structure