Split out field handling from pa_bitmatch into a common library, in preparation for...