Shared NodePool unuse/reuse class functions between different nodePools


I would like to create separate cc.NodePool for each recurring prefab in my game.

The logic for unuse() and reuse() for these NodePools are the same.

I know I can create a class for each NodePool having the same unuse/reuse functions calling some shared helper method. Is it really required to have separate classes for each NodePool or can they somehow share unuse/reuse functions while still be different pools?