Properly check if an animation exists before playing it
Combine a loop into another where it's used
Do not create an 'all' animation.
Use the first bone with text keys as the nonaccum root.
Filter out the group name from the text keys

It's already in the animation name, and the text keys are animation-specific
anyway.