OS-3566: refactoring imgadm import code path