Fix deprecation warning
Flatten model's `data` structure into single hash