Reduce the number of insert_dependencies parameters