This part was not changed from a very begin. Method PucFactory::addVersion() is defined at the same file, line #1041. I suppose you may have installed another version of class PucFactory, as it’s defined here just in condition that it does not exist yet, line #963:
if ( !class_exists('PucFactory') ):
Could you please check, what other plugin causes this conflict?