Make it simpler

It have a function that will construct the function it, instead make it automatically export itself.