Use the `animrig::legacy::channel_groups_all()` function to get action groups in a way that's compatible with both legacy and layered Actions. No functional changes for legacy Actions. Ref: #123424 Pull Request: https://projects.blender.org/blender/blender/pulls/128088