Refactoring to reduce the length and thus complexity of that answer-message building function.