Refactoring: improve setting of message title/text