How to create animation BP for a few skeletons?

Good day. If I have an NPC blueprint where I can use different skeletal meshes with different skeletons, can I use just one animation BP for it?
P.S. I’ve already created retargeter for skeletons, but I just don’t want to duplicate all animations.

Well, I suppose this should fix the problem:


But I’m getting strange warnings:

What can I do with it?