remount: Refactor remounting into a helper function.

Bug: 241179247
Test: remount
Change-Id: I1f1044222f6704fcce31cde4d4ebd3d6a37793c6
1 file changed