[art] Factor out encoding ClassLoaderContext components
am: 7d511d94cd

Change-Id: I5840985eefe3eb55c0d27e0bf8caf7d5d51a5b2e