Move some code out of ExtMobileFrontend

Change-Id: Ia615c0221daff293cc5bbb3463d94c7ce256e45c
Merge "Move some code out of ExtMobileFrontend"