Removes empty dicts and stuff