PIM-3452: Remove useless code

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | ?
| Tests pass?          | Y
| Scenarios pass?      | ?
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | N (is it needed?)
| Fixed tickets        | PIM-3452 (part of)
| DB schema updated?   | N
| Migration script?    | N
| Doc PR               |