Support dependencies used in nested prototypes.