refactor decision to run in native optimizer