LPS-39077 DL - Update the status of dependent entities when move or restore elements in recycle bin

Reviewed by @sergiogonzalez