As to use RemoveUnusedFilesInReleaseMode as a common function, is it better to move the checking of the mode (if mode == 'Release') into the function?