DRY up code to initiate routing