Dependency injection / null object pattern