Trim

Remove what's not needed and clean a bit the codebase.

Even if that's a lot of code in switch / case. I'm tempted to keep it as it is for now, as it does the job, and seems okay to make evolve.

Anyone got better solutions for this kind of form builder?