Cleanup dependencies.