Platforms generator

Platforms are now generating ugly, but generator have nicer architecture