Refactors RangeContext.formatStyle