Simplify NetUtils.getCategory()