Move repeated code for displaying outcome to method