Something is wrong with creating submenus. For example, I tried to create a VLC submenu and put the annoying two commands under there, like this:
However, upon saving the menu, the result is like this:
And when I reopen settings, I can see that Opus has indeed placed shell commands within the submenu.
Looks like a bug.