Move rest of code to the create_gateway_quality_rrd function.