Refactoring ui.dpi and ui.dpMultiplier