Remove parent from prototypes before static caching it.

(cherry picked from commit fdd888b1)

Closes #3574198

Merge request reports

Loading