[WIP][POC] Refactor datagrid stuff

| Q                    | A
| -------------------- | ---
| Bug fix?             |
| New feature?         |
| BC breaks?           |
| CI currently passes? |
| Tests pass?          |
| Scenarios pass?      |
| Checkstyle issues?   |
| Changelog updated?   |
| Fixed tickets        |
| Doc PR               |
We have to found a way to avoid hardcoded predicate on datagrid type. Maybe not for now but keep in mind that point.