Before food ever reaches the dinner table, it goes through a long and complex process.