Slightly cleaner way of handling equal item sharing.