You cannot do that. The restrictions and requirements for racial traits are not enabled in the hard code. Just label them as mutually exclusive, and set up the AIs so that they only take one of them, and it will be fine. Players using the mod won't likely take more than one if they want a "fun" game.
Also, check out the Modding 101 tutorial linked in my sig. It might have some useful info in there for you.