Split AnimationFactory into BGAnimationFactory and BG2AnimationFactory.