PIM-2900: Refactor pim serializer resolver