Post active mapping changes through notification center rather than to the application delegate directly. Don't listen for application switch notifications unless the mappings are active.
Implement equality checks for Targets. Don't consider equal targets as conflicting when importing.