buildSpec: defining and using default values to reduce the spec size