Refactor UrlMixin & RestAPIMixin