Move set_candidate logic
Clarify comments in importer
Decouple session and import task methods