Major refactoring.
Major refactoring.

This clearly needs testing...

prometheus/mysqld_exporter,prometheus/mysqld_exporter,growbots/mysqld_exporter,rtreffer/mysqld_exporter,roman-vynar/mysqld_exporter,roman-vynar/mysqld_exporter,wrouesnel/mysqld_exporter