Extract diffing code from expectations to support.