Remove the need for the static_visitor class.