Revert "Flag to add required attribute"

This reverts commit 6be6d5e448560c7c3e92ab16b3565fa1623860b1.