What legal safeguards help prevent shareholder and partnership conflicts