Refactored ComponentLoader `load` method to allow extensibility in component instantiation.