Using custom lifetime scope for singletons