Moves import job management logic to model, fixes specs