Removed duplicated method in generic.go (holdover from merge conflicts).