Moved require to the only place it is used