JMLLCLI refactor: replace dataset (for dynamic grid) in chooseMethod with dynamic grid factory