Remove closure detection