Cleans up dependencies.