This switch should probably be placed in the `getResourceHydrator` method.