Refine the contentType related APIs