Refactor route creation so setting schemes is easier