extracting and simplifying content type processing