Remove the request module declaration and clean up the code.