lib/app: move stuff from `App::init` to a new function, `App::sepup`