[PATCH net v6 2/4] selftest: netcons: refactor target creation