Refactor classes; abstract global css to external stylesheet.