Fixes #5843, removing api v1 routes.