Set some dependencies as optional