public function filter_setting_args( $args, $wp_customize ) {

		if ( $args['settings'] !== $args['settings'] ) {
			return $args;
		}

		// Set the sanitize-callback if none is defined.
		if ( ! isset( $args['sanitize_callback'] ) || ! $args['sanitize_callback'] ) {
			$args['sanitize_callback'] = [ __CLASS__, 'sanitize' ];

			// If this is a hue control then its value should be an integer.
			if ( isset( $args['mode'] ) && 'hue' === $args['mode'] ) {
				$args['sanitize_callback'] = 'absint';
			}
		}
		return $args;
	}