Reduce indirection in get_content_type()