Removing the problematic foreign keys.