Fix regression with USE_REDIS (refactor_main)

Add class CoreSettings