[AdPredictor] Code reduction in AdPredictor inference routines

Summary:
Reducing amount of code.

Test Plan:
```
make test
make demo
```

Reviewers:

CC: