Add function wrapper around apply_visitor for future extensions.