Split AnimationPlayer into two classes.