Cleanup of way revisions related functions.