Implement new hooks for optional statements.

Depends on https://github.com/Islandora/islandora_solution_pack_collection/pull/103