Reorder the ensure_printable functions so that pre-declaration is unnecessary