Avoid pulling in boost dependencies when all we need is the class name. Closes scylladb/scylladb#22453