OCP\Share::unshareAll(): Deduplicate hook parameters.
Extract unshare() code into unshareItem().
Use unshareItem() in unshareAll().
Use unshareItem() when unsharing expired shares.
Deduplicate expiration date check into a method.