RF Button integration to home assistant - Design Question

I want to integrate a RF button such as my doorbell with HA. The signal reaches HA without issues as the following automation works flawlessly.

- alias: Wall Switch Button 1
  trigger:
        platform: mqtt
        topic: home/433toMQTT
        payload: 5842324
  action:
    - service: notify.pushbullet
      data:
        message: Button 1 pressed!

My problem is that I do not want to use that trigger throughout my configuration because it causes lots of unnecessary duplication of RF codes. Is there a clean way of integrating this RF button in such a way that its RF codes are not used in triggers throughout the configuration? I want to isolate the implementation detail of the RF code from the rest of the HA configuration.
I was thinking adding an automation which simply “catches” the MQTT message and generates a dedicated event representing that button press.

Is there a way to do this?

I would use an input_boolean which would be set in the action part of your existing automation then use that wherever you want.