Refactor attribute definition.