abstracted the model being converted from a resource
refactoring