Refactores import command