core: minor refactoring in pool related commands

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