Deduplicate some code

Signed-off-by: John Else <john.else@citrix.com>
CA-151670: Don't double count HA-protected VMs when restarting them

When attempting to restart HA-protected VMs after an HA failure, they
should be treated as new VMs to add to the HA plan, since HA will
already be taking them into account.

Signed-off-by: John Else <john.else@citrix.com>