Persistence handlers are currently created inline in the main hanlder, this is a problem for a couple of reasons:
- They can not specify dependencies, like another handler
- They are provided internal handler instance and not the business logic facing one that potentially support cache, ...
- Other code can not properly depend on them as dependencies
So somehow they should be independent dependencies injected into main handler.
- implementation spec