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
2 files changed