14 blocks of identical might be easiest -- if the more advanced coding concepts that might come up are above what you understand and above what you want to learn about. My mentor taught me that you want to write code that is easy for YOU to write, easy for YOU to debug, and easy for YOU to change and maintain -- even if that is not the same as other, more advanced programmers would do.

If you are interested in learning and expanding your coding skills, this is how I probably would do it (with what I know now). I would probably use a "lookup array" that would allow me to associate an index number with a color. Something like:
colorsarray=array("blue","yellow","red"...)
...
color=pfB.PivotItems(i)
colorindex=application.worksheetfunctions.match(colorsarray)
storepath=grouppath(colorindex)
...
I believe there are more advanced coding concepts (user-defined types or scripting dictionaries) that can also do this sort of thing, but I don't know enough about those concepts to comment. I will invite others to make suggestions if there are other concepts that would help.