Only importing proto if it's needed.