refactors classes, ids and stylesheets