Derive DependenciesV4 from Dependencies
Remove unused locals and unneeded each_with_index