Some old remnants of code from the refactor of netcli was left over as reported in #17408. This commit removes the old code as it isn't need and in fact wasnt doing anything