Remove static check on contract generation.

Closes PR 13607.