Revert "Moves data model from resource to source"

This reverts commit b4b97ec6d092249f6882a485b6b6e4918ff8085c.