ART: Refactor ClassJoin code

Remove function from header and move to anonymous namespace.
Make the function smaller by factoring out a larger case.

Bug: 69826014
Test: m test-art-host
Change-Id: Ida4c11448c13700e9a3412a306a244561fd9f60e
2 files changed