remove factory attribute from UserRepository