refactoring and dominion graphics