Refactoring Custom Elements wrapper definition.