Put the conditional inside `def patches`.