[CORE] moved configuration logic to separate file