Minor cleanup for LogMessageWithBehaviour to make it more readable