[No Audio]
So now we made that code quite nicer there.
As a developer, I feel kind of guilty
that we've put it in an AuthenticationService.
So let's do what we're going to do initially and
let's just break it out into a separate user service.
[No Audio]
So let's call it User
[No Audio]
LookupService.
I don't know, whatever it might be anyway.
And then we'll take these methods here
[No Audio]
and strip those out, put them in here.
[No Audio]
And now we need to use the repository to go as well.
The authentication service still needs to
use a repository, of course. So we'll still leave that
in place. But we'll just copy across this reference
here so the user look up services can use it as well
[No Audio]
okay and then go back to AuthenticationService.
Tidy imports. You can see now it's removed to import.
That's why it's good practice to get into,
even though we couldn't see that because of
the ellipses here, the three dots.
It's still nice just to get into that practice and now
use the lookup service is we have this as the code.
Let's run all the tests again to make sure we're okay.
[No Audio]
Yeah. No regression be introduced. That's fine.
So we're good to go.