Move duplicated regex into constant