Do not open Apple Music when pressing a media key How do I prevent Apple Music from opening when pressing a media key?

If I have Sonos or Spotify opened, the media keys control them as they should. If they are closed, annoyingly, Apple Music opens, prompts login etc. How do I make it disappear from my life completely?
This still works under Big Sur on M1 Macs:
launchctl bootout &quot;gui/$(id -u &quot;${USER}&quot;)/com.apple.rcd&quot;
launchctl disable &quot;gui/$(id -u &quot;${USER}&quot;)/com.apple.rcd&quot;

The top command disables it immediately. The bottom command prevents it from reactivating on restart.
To return to the default behaviour, replace bootout with bootstrap and disable with enable:
launchctl bootstrap &quot;gui/$(id -u &quot;${USER}&quot;)/com.apple.rcd&quot;
launchctl enable &quot;gui/$(id -u &quot;${USER}&quot;)/com.apple.rcd&quot;

Note this may disable the media keys for other apps as well.