Start refactor is_dynamic to enum.