Fixed dead store in AnimationFactory.