refactor: move function "fetch" (redeclare as function, not method)