Remove default values from formula constructor parameters

Closes #30017.