core: ActiveStorageDomainCommand refactoring

Rearranged code in helper functions in order to reduce code duplication

Change-Id: Ib5962dab111cf2c799029081526a4344d7b15f52
Signed-off-by: Vered Volansky <vvolansk@redhat.com>