Refactoring for stylesheets management