Walmart announced its in-house brands would phase out synthetic, petroleum-based dyes over the next few years.