Merge "Clean up applyPatch() usage in the installer."