AccountCandidates moves from being a pair to a struct.
CostedPath moves from being a pair to a struct.