Read the sentence.

The kakapo is endangered, which is my friend's favorite animal.

Which option best revises the sentence to correct the misplaced modifier?


My friend's favorite animal: the kakapo is endangered.


My friend's kakapo which is a favorite animal is endangered.


The kakapo, which is my friend's favorite animal, is endangered.


Endangered, my friend's favorite animal is the kakapo.