ref-filter: move ref_cbdata definition into ref-filter.c