Add factory method for creating the service container