Refactoring spritebatch