Fixing duplicate code which had gotten introduced because of a merge.
Add support for the `elementFormDefault` schema attribute.