Refactoring graphic question