CreatePolygonWithHole2D refactoring.