Lowered the crap index on the Router.php class by moving repeated code
into a new method.