Realized I never posted my PR here:
https://github.com/discourse/discourse/pull/5475
As the PR says:
I thought I’d KISS and just use the first group which receives the PM in the subject line. It’s not perfect, and could cause some confusion, but it’s behind a site setting and (I think) is still better than what currently exists.