Moved dictionary keys to class statics
Moved error domain and code
Moved constants inside of Metadata