core: minor refactoring in RemoveVmTemplateCommand

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