Combining multiple automations for one device

Hey. I’m new to HA and a yaml noob. I have an IKEA STYRBAR zigbee remote which allows me to setup click/long-click on different buttons.

All is working fine with my setup but the automations page can easily become very crowded after setting up 2 automations for each button!

My question, is it possible to combine all the automations for that remote in one yaml file? Can I just copy/paste all the code in one automation yaml editor? Thanks!

Example of two automations I have:

**alias: IKEA Remote Toggle Lights**
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: 11cXXXXXXXX
    type: action
    subtype: "on"
    discovery_id: 0x003c8XXXXXXXXX action_on
condition: []
action:
  - service: light.toggle
    data: {}
    target:
      entity_id: light.living_room_lights
mode: single

**alias: IKEA Remote Toggle Lower Volume**
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: 11cXXXXXX
    type: action
    subtype: arrow_left_hold
    discovery_id: 0x0XXXXXX action_arrow_left_hold
condition: []
action:
  - service: media_player.volume_down
    data: {}
    target:
      entity_id: media_player.nest_speakers
      device_id: XX8a28eXXXXXXXXXXX
mode: single

There are multiple Blueprints for the Ikea Styrbar

Didn’t know this is a thing! Thanks, I’ll look into blueprints! Too much to learn for newcomers but it’s enjoyable!