Refactor application of type decorators into an object