Refactor populate quiz in controller to own helper method