Code duplication in StatsModifierTraits class.

Two identical functions were merged in a single privet helper function.