How does the targeting of the Protection from Evil and Good spell work with an Intellect Devourer’s Body Thief action?

The Intellect Devourer’s Body Thief action specifies:

A protection from evil and good spell cast on the body drives the intellect devourer out.

However, the protection from evil and good spell can only target a creature, not the body in particular. How do I reconcile this difference? Can I assume that targeting a creature equates to targeting its body?