Remove exception from `createComponent` method.