Support flyweight pattern generation