Refactoring: extract initializers from appbase railtie engine.