After consulting with @jamesros161, we decided the best method to update this function was to copy the function rather than moving it to the utility class. This is because the scripts are meant to be able to run atomically via CLI without WordPress or the rest of the plugin in the event of catastrophic failure. Similarly, we're not using the core wpdb:parse_db_host() since wpdb will not be instantiated during a CLI restoration.
Resolves #574.
After consulting with @jamesros161, we decided the best method to update this function was to copy the function rather than moving it to the utility class. This is because the scripts are meant to be able to run atomically via CLI without WordPress or the rest of the plugin in the event of catastrophic failure. Similarly, we're not using the core wpdb:parse_db_host() since wpdb will not be instantiated during a CLI restoration.