In the change that added the new unified diff screen [1], SideBySideCommentManager and UnifiedCommentManager had a lot of duplicate code. Extract common code to reduce duplication. [1]: https://gerrit-review.googlesource.com/#/c/49171/ Change-Id: I3396d72b9146ddd4944a8226c9860022b0879c95