Add IdField type; convert dispatch to that.