Cleanup duplication in TransclusionDialog classes

Change-Id: I96bcd07a1548b21c8a11b9d2990400d4f48e044a