Simplify bit comprehension

Lookup the line to set for the bit in a tuple.