Extract chatbox presentation into class