Content Translation keeps track of information about the paragraphs of the translation. This includes the percentage of modified machine translation (T190279), and the issues (errors and warnings) that may be associate with a paragraph (T189488).
As these pieces were developed, several opportunities to reduce code duplication were identified. The current ticket is to perform the refactoring needed to reduce such duplication. This will facilitate the development of future tickets to support new kinds of issues.
As the refactoring is done, we may want to account for future functionality that may have an impact on how the code is organized such as: