Re-use extruder_settings and move definition closer to use
Re-use extruder_settings and move definition closer to use

Keep code a bit more self-contained, makes it easier to read.

Contributes to issue CURA-4410.

Ultimaker/CuraEngine,Ultimaker/CuraEngine