Refactor AttributeAnimation.