Extract the otapreopt parameters in their own class and add tests am: dff4729abb am: fc8cc8af5c
am: 55c8907592  -s ours

Change-Id: I8e7dc1a08959cf976d5cea180fc2daf66b47d26b