LPS-44765 Apply distributive property to simplify if.

hey @sergiogonzalez, 

I've tried to preserve this 3 considerations when modfiying the if logic (1 and 2 are based on https://issues.liferay.com/browse/LPS-34791 comments):

1. If a parent page is sent to the recycle bin(then deleted) or deleted and the child page is being reviewed(Kaleo) the Child page will lose the parent link, but remain in the portal so the creator of the child page does not lose content if someone else deletes the parent page, since they might not be able to view the child page or see it is in review.
2. If a Parent page and child page are sent to the recycle bin and the child page is restored, deleting the parent page will remove the link from the child page instead of deleting it, since the user may just want to keep the child page.
3. If Parent page and child page are in trash both should be deleted.

I inferred from 1 and 2 a 4th clause:

4. If Parent page is in trash and child page is approved,  child page should be deleted on parent deletion.

Is it right???

thanks!