Refactoring in order to better chain loading of primitive types.