Cleanup of global patterns