Refactor metadata dataclasses to contain constructors as classmethods
There are a number of factory-methods for dataclasses in metadata.py. It would be good to move them to classmethods in the respective dataclasses.
There are a number of factory-methods for dataclasses in metadata.py. It would be good to move them to classmethods in the respective dataclasses.