Move helpers from init to app and config modules

No behaviour changes.