Refactored initialization of TextConfiguration