Remove redundant static if