Probably best to put this into `get_kind_by_extension`, since you'll likely want to throw this anytime you call that function.