Remove relation and add require in template