Refactoring for the product attribute data type templates