If we're going to remove this (which I think is ok for now), let's also remove the function `unsavedChangesCheck` below if nobody calls it anymore.