Refactoring of autoRecordInstalls.