The functions enkf_main_set_refcase() and enkf_main_validata_refcase() are not related to fs management and should be moved back to  the main enkf_main.c fiile.