Refactor styles.