Extract a component to handle refinement.

This is in advance of any possible bug-fixes related to b/262805893
(which may probably be accompanied by additional unit tests..)

Test: `atest IntentResolverUnitTests`
Bug: 202167050
Change-Id: I4c8d20522236559ff99b6e11a7c1a3a0fcbbd17d
Merged-In: I4c8d20522236559ff99b6e11a7c1a3a0fcbbd17d
(cherry picked from commit c07d3f064db9cf715e36e9b6d4c1cd516e2258ce)
2 files changed