Refactoring to use dimentions XML resource file