Moved level generation to service class.