Refactor current user API.