[PATCH v1 34/34] qemuDomainNamespaceTeardownInput: Deduplicate code