fetch: refactor ref update status formatting code