Refactor style config