Added utility function for removing items from nested dicts.