Refactor rendering flights under trip planning