Remove user repository from write API

It is not used there, it is only used by the admin app.