To have this functionality you can do the following trick, which should work just fine.
No need to override any file or create a extension.
Partly we loose departments functionality. In LHC since 2.07 you can generated embed code with multiple departments selected at once. So if you create four departments. Let say "Support site 1","Commercial site 1","Support site 2","Commercial site 2" So for one site you can choose first and second department. For second site you chose third and fourth departments. So basically we avoid previous disatvantages.
Just use identifiers while generating embed script and creating new invitations. By identifier you can separate invitations.
Developing application takes a lot of time. You can support application by donating. There is no company behind this application and it takes away my free time. Every donation matters and does not matter how small it is!