Refactoring GetZoomAutoFitScale()