Refactor application of type decorators into an object

It gets called with an argument on line 39. Line 37 should return an empty hash if the key is not present. (Both will go away soon)