The problem is that anything that is "aversive" in the sense of avoidance may ultimately be perceived as pain. Whether we need to associate a emotional valence with pain in the way evolution has (because evolution coopted existing systems) is an open question. We may not need to, but any function that takes multiple pain like inputs and associates with with a conserved set of behavioral responses is likely to result in something similar to our perceived experience of pain.