Use Fog.class_from_string instead of custom method.