This would be a much nicer way of doing this, tags should be implemented into anything really. Such as what workers can build, instead of listing every building, use tags, same for what they repair, maybe even limit what units can attack or cast spells on making that inter-faction too.