Move updating DepsLog's deps_ array into its own function.