Extract the otapreopt parameters in their own class and add tests
am: dff4729abb

Change-Id: Ia4c8bc69b90c69b56687080c54bfb036b251a6f4