Move some logic related to requests from the Router class to the Request class