Merge "Move CheckAtMostOneLatest and CheckUniqueLoopDm to be private methods"