Add support for reimporting flexible attributes.

Move the reimport and replaced item logic into separate methods:

* ImportTask.record_replaced()
* ImportTask.remove_replaced()
* ImportTask.reimport_metadata()