Removed commented out code in AnimationFactory.