Texture refactoring