Simplified some dependency code using lazy validation.
Simplified some dependency code using lazy validation.

Signed-off-by: Andy Dufilie <71f9562d51201e38fec5e9a967c9dca8b265f770@gmail.com>
WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS