Refactor style computation code.

Issue #163