Remove ugly conditional used to filter rules by task options