clean up code for finding vars using common_read_find_var() for schema