Refactor the Params of route to a inner class