Refactored/extracted some code from Size class.