Texture management refactoring.