Fixed minor pmd issues in AnimationFactory and others.