Refactor anyfetch calls