Create Entity model object and move functions from Workspace to Entity