Break out flex & modernize using DefRule.