Reduce Cyclomatic Complexity of Text classes