Refactor ViewDimensions data structure