[PATCH 1/5] domain_validate: Move memdevice address conflict check into a separate function