Small refactoring in Scene2D