Factor common parts in ART/Runtime APEX checker build rules. am: d4fc62c663
am: 8e9be83dae

Change-Id: I513634cf2ece35556cd6d63bb5349c3ae7848f4d