Move payload config to routes. For #2203