Issue #3572772: Refactor MyrestMetatagForm to remove custom entity dependencies and use EntityTypeManager
Closes #3572772