I would write like this, if `batch_caller` is meant for testing:
```erlang
NewState = case lists:member(testing, Options) of
    true -> start_manual_batch(true, Leeway, State?STATE{batch_caller=CallerPid});
    false -> start_manual_batch(false, Leeway, State)
end
```