Refactor two_three_of_a_kind