Better way to require dependencies