Split help output into a separate function