Is it preferred to add additional rights defined in an extension via extension.json or via $wgAvailableRights? The extension.json mentions the $wgAvailableRights variable, but doesn't explicitly state which method would be better.
In fact, a lot of the things defined in extension.json have $wg variable equivalents - is there a preferred method, or is it up to developer discretion as long as it's consistent?