I have defined some user roles and I'm assigning them to users through the rules module. I have created a feature with the rules and the roles and moved them to another site. My problem is that the user roles get new IDs and that the IDs are hardcodet in the exportet rules. Therefore the rules assigns wrong roles and I don't want to fix that each time I install the feature.
Can I somehow hardcode the user roles programatically and let the rules module work on them? Is there a better solution for the problem?
It is more or less the same problem for taxonomies that also get assigned new IDs.