Extract condition from ifdef

Because it breaks "if" style.