Swift boost defs to unitDef