Lifecycle management and dependency injection utilities