Optimize dependencies.