Refactor: Reduce cyclomatic complexity
Reduce cyclomatic complexity on DocumentProperties and Word2007 Document Writer.