Factor out the styles.