Extract the 'can this Action be assigned to this ID?' logic from the RNA function `rna_Action_actedit_assign_poll()` to the `animrig` module. This way it can be called from multiple places in the future, and tested properly. No functional changes. Pull Request: https://projects.blender.org/blender/blender/pulls/123060