This multiple updateDPI is good indicator for a future refactoring. Can you add a TODO here about adding some event dispatching or any other refactor ?