Refactoring for GraphicalEntity common handling