Implement bundle metadata API. Add a check for relevant entity.

s/returns/reports/

(standard phrasing)