integration refactoring

It seems that this implementation adds too many dependencies.

I think that TokenRepository could use TokenFactory internally (or use just method createNewToken()), so the following snippet could be changed to something like:
```java
   return tokenRepository.registerNewToken();
```