Extrusion host code generation refactoring.

Small code refactoring to make mixed space code generation easier.