persist: Remove the rewrites checking code