refactoring use MobileDimensions instead of class specific computations