Extract from doDiff method in MapDiffer

Change-Id: I586ad0c3b1aba8b639da7edbf24c5778497f7d7c