Should at least be in util folder. And since it is imilar functionality to the unit factory it is placed within.