You want reference_type to be a string? Why not pass a class?