more refactoring to improve test coverage on LandscapePortraitUtils