though his position in society had been fixed by generational affluence and family tradition , thomas bainbridge shunned the traditional military service and turned his attention to academics-mainly history , languages , and archaeology .