Add share() method to view factory contract.