Extract messages into methods