Fractal Generator: Some refactoring