Condense logic into single line.