Allow requirements to specify a default formula.

This allows default resolution of requirements without user intervention.

Closes #19627.