Refactoring of createComponent method name