Sovereignty mechanics are something that few players ever deal with directly. Even the vast majority of players who participate in the fleet battle over sovereignty don’t actually touch the underlying systems.
A trivial programming problem solved badly, but honestly, in a trivial language.