Extract common routes into helper