Move template component require to outside of the class that extends components. #36.