Factor out code for picking the best oat file.
am: 88bc673b14

Change-Id: I0e928c58e13856b11295300d3d0911d4132fd15c