Rename apply_edit to apply_named_edit to prevent collisions with SidebarEnhancements' apply_edit