refactor duplicate styles