Moved AnimationObject to separate source files.