refactor: extracted WebResourceType