Move UrlMap class to Stack namespace