Resolve promises from the facotry in the controller.