Replaces the string -> type class mapping with just passing around the
type classes everywhere