Replaces `flights` with `refs`.