Cleanup the resources parsing a bit

Bug: 203938029
Test: manual
Change-Id: Ib4d87bc7ee3fbea9be65302ad8ca7a8759b20d62
1 file changed