Convert to new boolean pattern