Refactor: use Perinci::Sub::To::CLIOptSpec to remove code duplication