Refactor request method.