Move external require to the register method