Refresh control on manual track change

According to the official doc, it is possible to refresh snap by switching tracks. However I wish to disable this feature or atleast detect the change in track and clear the SNAP_COMMON folder. How do I detect during a refresh if there was a change in tracks?

My use case is maintaining separate tracks for different stable versions of the same snap with different network configurations which will be functionally slightly different from each other. Please help with possible sollutions. :slight_smile: