Some refactoring in BackgroundDexOptService. am: 95176bb18e am: 377cc26e3a
am: e1a0a76381

Change-Id: Id97538a51933ccbb9c62511e5949664780b7e861