Hex Grids Framework

So a quick post, hoping to get some feedback. I am writing the square grid framework now, and I have to separate it from the Hex grid stuff, and I see 2 options. Either I keep blueprint nodes generic, and add a input enum of “Hex”, “Square” so on every single node you have to set which grid type you’re working on. Thats kind of annoying, and junks up your blueprints. The other approach is making blueprint nodes specific, so you end up with twice the amount of bp nodes, ie GenerateTriangleGrid_Square, and GenerateTriangleGrid_Hex. That’s not idea either.

Most of my nodes apply to both types, but the actual implementation is different, so one way or another they need to have separate code bases. Does anyone have any preference or other approaches?