core: minor refactoring in RemoveVmCommand

Change-Id: I1884a595320ac54a26d681c54770274f831ce849
Signed-off-by: Arik Hadas <ahadas@redhat.com>