Moving require inside class