Add resource based model template factory