Use each_with_object on optional setting parser