Introduce `get_dict()` as a helper.