Reduce redundancy in the common state file with jinja. …
Factor out common subexpressions based on system type.