LockAgent: Refactor transformation code

Extract a helper class.

Bug: 124744938
Test: m
Test: manual
Change-Id: I9fb6b4b5d7bc47f4233cacef8a192989563ce279
1 file changed