The workaround is no longer needed since Nixpkgs 22.05
(https://github.com/NixOS/nixpkgs/pull/156533).
Declaring options directly in a submodule now works, e.g. `options.flake.foo`.
The function is kept for backwards compatibility but documented as deprecated.
The minimum supported Nixpkgs lib version is already 22.05, so this change
does not drop support for any previously supported version.