De-duplicate styles. Fixes #4