chore: reduce code duplication in ForgejoVersionCache#RefreshAsync