Move application initialization from bootstrap into separate class.