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