Hotfix to prevent duplicate related data on import.