flatten a layer of unneeded conditional