Feature #8725: simplification configurable

The simplification is configurable by layer, also this commit contains
reording of code.

I have pending show in the properties form of layer a check for
enable/disable the simplification