Refactoring TextureUpdateHelper.