interactive/printing: remove duplication in printable_types
interactive/printing: remove duplication in printable_types

printable_types and the _can_print_latex function contained duplicate
code which I refactored to remove duplication

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy