Refactor code for initializing UserRecord

Test: atest mediaroutertest
Change-Id: Ib874f4e92c79b28a75721f456451e7775e0bafae
1 file changed