Simplify _get_data_and_funcs() to reduce number of arguments