Refactor remote tags fetching