Reducing number of expressions in a generation