JoystickProfiler allows you to do this, although it can become a rabbit hole itself. It would be easy if all modules adhered to the same input naming and assignment convention, allowing for specific functions to be the exception. But the plethora of aircraft types created by multiple developers over decades dictates that we have anything but a standard.
JoystickProfiler attempts to mitigate this, but as I said, keeping it and your profiles up to date is a chore in itself. At worst, it allows you to backup your profiles. Best use their Discord for support. I’ve recently updated mine but not up to speed with all of the changes since March ‘21.