Refactor in dynamic_fields method of an HStoreM2MGroupedModel instance.