Require dependencies inside the methods.