Move logic from Route to parameters factory