Removed `createComponentWithGetComponent` and `createComponentFromFactory` functions; brought their contents into `createComponent`.