Apply suggestions from code review
Apply suggestions from code review

Co-authored-by: Anson Stewart <dcc5fc4b1dd0ade8b0c4e60772600a10a28ea486@conveyal.com>
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui