Add Factory Pattern to Cowboy Generation.
Change of responsability in some classes due to envy between them.