Rework to integrate with islandora_batch.

Related to https://github.com/Islandora/islandora_batch/pull/16.