Reconfigures dependencies.