Easier to change urls in settings and some repetition removed from views