Moved route setup to own method