Split print_rtx into subroutines