refactored import task and removed legacy.rb model