Refactor the Stylesheet to use more framework code.