Remove redundant tenary